﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

// アイコンはここから
// http://37signals.com/svn/posts/1844-open-source-icons

namespace SearchAndDistill
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            // search
            try
            {
                NabeTabetai.FormSearch form = new NabeTabetai.FormSearch();
                form.ShowDialog(this);
            }
            catch (Exception exception)
            {
                MessageBox.Show("エラーが発生しました。\r\n" + exception.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            // distill
            try
            {
                ETenki.FormDistill form = new ETenki.FormDistill();
                form.ShowDialog(this);
            }
            catch (Exception exception)
            {
                MessageBox.Show("エラーが発生しました。\r\n" + exception.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
    }
}
